package com.hjy.user.service.impl;

import com.hjy.common.result.User;
import com.hjy.user.mapper.SysUserMapper;
import com.hjy.user.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysUserServiceImpl implements SysUserService {
    @Autowired
    private SysUserMapper sysUserMapper;
    /**
     * 发送手机号
     */
    @Override
    public User send(String tel) {
        User user = sysUserMapper.send(tel);
        return user;
    }
    /**
     * 登录
     */
    @Override
    public User login(User user) {
        User login = sysUserMapper.send(user.getTel());
        return login;
    }
}
